package com.lwc.controller;

import com.lwc.bean.User;
import com.lwc.remote.UserRemoteClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
@Slf4j
public class UserController implements UserRemoteClient {
    @Override
    public User get(int id) {
        return new User(10,"dsa");
    }

    @Override
    public List<User> getlist(int page, int pageSize) {

        List<User> list=new ArrayList();
        list.add(new User(1,"dsa"));
        list.add(new User(2,"sa"));
log.info("page>>>>"+page);
        log.info("pageSize>>>>"+pageSize);
        return list;
    }


}
